# 登录：
# 地址：http://kdtx-test.itheima.net/api/login
# 方法：Post
# 请求数据：
# 请求头：Content-Type:application/json
# 请求体：
# {"username":"admin","password":"HM_2023_test","code":"2","uuid":"验证码接口返回数据"}

#导包
import requests
# 发送接口请求

url_1='http://kdtx-test.itheima.net/api/login'
login_data={"username":"admin","password":"HM_2023_test",
            "code":"2","uuid":"afdcc3d5ac9f4fa79c9ce285c656a590"}
headers={"Content-Type":"application/json"}



resp = requests.post(url=url_1,json=login_data,headers=headers)
# 获取响应数据
print(resp.json())





